# -*- coding: utf-8 -*-
import requests
class ProxyMiddleware(object):

    def __init__(self):
        self.ip = ""

    def process_request(self, request, spider):
        url=requests.get('http://127.0.0.1:5000/get').text
        proxies = 'http://'+url
        self.ip=proxies



